package com.huage_07.lesson_01;

public class JieCheng {
    public static void main(String[] args) {

        int result = jieCheng(4);
        System.out.println("result = " + result);
    }
    public static int jieCheng(int n){
        if (n==0){
            return 1;
        }else {
            return n*jieCheng(n-1);
        }
    }
}
